<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Elimina_acentos {
	/* Metodo para eliminar los acentos para la url*/
	function eliminaAcentosUrl($String){
		$String = str_replace(array("á","à"),"a",$String);
		$String = str_replace(array("Á","À"),"A",$String);
		$String = str_replace(array("í","ì"),"i",$String);
		$String = str_replace(array("Í","Ì"),"I",$String);
		$String = str_replace(array("é","è"),"e",$String);
		$String = str_replace(array("É","È"),"E",$String);
		$String = str_replace(array("ó","ò"),"o",$String);
		$String = str_replace(array("Ó","Ò"),"O",$String);
		$String = str_replace(array("ú","ù"),"u",$String);
		$String = str_replace(array("Ú","Ù"),"U",$String);
		$String = str_replace("ç","c",$String);
		$String = str_replace("Ç","C",$String);
		$String = str_replace("ñ","n",$String);
		$String = str_replace("Ñ","N",$String);
		return $String;
	}
}
